package com.yym.project.dao;

import com.yym.project.entity.Book;
import com.yym.project.service.IBookService;

import java.util.List;

/**
 * 连接dao跟数据库的交接
 */
public interface IBookDao {
    //添加图书
    int save(Book book)throws  Exception;
    //修改图书
    int  update(Book book) throws  Exception;
    //删除图书
    int delete(Integer id )throws  Exception;
    //查询图书
    Book selectByName(String name)throws  Exception;
    //查询全部图书
    List<Book> list() throws  Exception;
}
